package com.xiaobaibai.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaobaibai.entity.Product;
import com.xiaobaibai.vo.CreateOrderItemVo;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaobaibai
 * @since 2020-10-16
 */
public interface ProductDao extends BaseMapper<Product> {

    public List<Product> getProductByList(Collection collection);

    public List<Product> getProductByOrder(Collection collection);

    public List<Product> getImageById(Collection collection);

    public int returnStock(List<CreateOrderItemVo> list);
}
